﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using YasharEl.Infrastructure.ApplicationModel.Bootstrap.Extensibility;

namespace YasharEl.Infrastructure.ApplicationModel.Bootstrap.Syntax
{
    /// <summary>
    /// Execute action syntax.
    /// </summary>
    /// <typeparam name="TExtension">The type of the extension.</typeparam>
    public interface IExecuteAction<TExtension> : ISyntax<TExtension>
        where TExtension : IBootstrappingExtension
    {
        /// <summary>
        /// Adds an execution action to the currently built syntax.
        /// </summary>
        /// <param name="action">The action.</param>
        /// <returns>The current syntax builder.</returns>
        IWithBehavior<TExtension> Execute(Expression<Action> action);
    }
}
